let Main = () => import("../views/MainS")
import {  } from "../views/pages/system/Role.vue";
export default [
    {
        path: "operation",
        name: "operation",
        component: Main,
        meta: {
            title: "operationname",
            icon: "icon-yunying"
        },
        children: [
            {
                path: "comment",
                name: "comment",
                component: () => import("@/views/pages/operation/Comment.vue"),
                meta: {
                    title: "comment"
                }
            },
            {
                path: "order",
                name: "order",
                component: () => import("@/views/pages/operation/Order.vue"),
                meta: {
                    title: "order"
                }
            },
            {
                path: "freight",
                name: "freight",
                component: () => import("@/views/pages/operation/Freight.vue"),
                meta: {
                    title: "freight"
                }
            },
        ]
    },
    {
        path: "commodity",
        name: "commodity",
        component: Main,
        meta: {
            title: "commodity",
            icon: "icon-shangpinguanli"
        },
        children: [
            {
                path: "Category",
                name: "Category",
                component: () => import("@/views/pages/commodity/Category.vue"),
                meta: {
                    title: "Category"
                }
            },
            {
                path: "Group",
                name: "Group",
                component: () => import("@/views/pages/commodity/Group.vue"),
                meta: {
                    title: "Group"
                }
            },
            {
                path: "list",
                name: "list",
                component: () => import("../views/pages/commodity/List.vue"),
                meta: {
                    title: "list"
                },
            },
            {
                path: "productAdd",
                name: "productAdd",
                component: () => import("@/views/pages/commodity/product/Add.vue"),
                meta: {
                    title: "productAdd",
                    parent:"/index/commodity/list",
                    keepAlive:true,
                }
            },
            {
                path: "productEnit",
                name: "productEnit",
                component: () => import("@/views/pages/commodity/product/Enit.vue"),
                meta: {
                    title: "productEnit",
                    parent:"/index/commodity/list",
                    keepAlive:true,
                }
            },
        ]
    },
    {
        path: "extension",
        name: "extension",
        component: Main,
        meta: {
            title: "extension",
            icon: "icon-fenlei"
        },
        children: [
            {
                path: "advertisement",
                name: "advertisement",
                component: () => import("@/views/pages/extension/AdvertiseMent.vue"),
                meta: {
                    title: "advertisement"
                }
            },
            {
                path: "coupon",
                name: "coupon",
                component: () => import("@/views/pages/extension/Coupon.vue"),
                meta: {
                    title: "coupon"
                }
            },
        ]
    },
    {
        path: "user",
        name: "user",
        component: Main,
        meta: {
            title: "user",
            icon: "icon-yonghu3"
        },
        children: [
            {
                path: "address",
                name: "address",
                component: () => import("@/views/pages/user/Address.vue"),
                meta: {
                    title: "address"
                }
            },
            {
                path: "member",
                name: "member",
                component: () => import("@/views/pages/user/Member.vue"),
                meta: {
                    title: "member"
                }
            },
        ]
    },
    {
        path: "system",
        name: "system",
        component: Main,
        meta: {
            title: "system",

            icon: "icon-shezhi"
        },
        children: [
            {
                path: "administrators",
                name: "administrators",
                component: () => import("@/views/pages/system/AdminIstrators.vue"),
                meta: {
                    title: "administrators"
                }
            },
            {
                path: "configuration",
                name: "configuration",
                component: () => import("@/views/pages/system/ConfiguRation.vue"),
                meta: {
                    title: "configuration"
                }
            },
            {
                path: "Dailyoperation",
                name: "Dailyoperation",
                component: () => import("@/views/pages/system/Dailyoperation.vue"),
                meta: {
                    title: "Dailyoperation"
                }
            },
            {
                path: "role",
                name: "role",
                component: () => import("@/views/pages/system/Role.vue"),
                meta: {
                    title: "role"
                }
            },
        ]
    },
]